package com.tjetc.mapper;

import com.tjetc.domain.Patient;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

import java.util.List;

public interface PatientMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Patient record);

    int insertSelective(Patient record);

    Patient selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Patient record);

    int updateByPrimaryKey(Patient record);



    @Select("select * from patient where uid=#{uid} and isbind=1")
    List<Patient> selectByUidBind(Integer uid);
    List<Patient> selectByUidNoBind(Integer uid);
    @Select("select * from patient where uid=#{uid} ")
    List<Patient> selectByUid(Integer uid);
    @Select("select * from patient where idcard=#{idcard}")
    Patient selectByIdcard(String idcard);

    List<Patient> findAllPatient(String name);
}